 
 <%@ page contentType="text/html; charset=UTF-8" %>  
<%@ taglib prefix="s" uri="/struts-tags"%>
       
<html>
    <head>
     <script type="text/javascript" src="JavaScript/scripts.js"></script>
     <link rel="stylesheet" type="text/css"  href="css/main.css">
     <title>Consulta Cliente</title>
    </head>
 <body>
   
    <div id="botao1">
   <div id="style1">
        <div id="barratopo">   
         <center> <font size="4">Manuten&ccedil;&atilde;o de Cliente</font></center>
        </div>
          <TABLE BORDER="0">
            <tr><td><a href="formCliente.action">Cadastrar </a></td>
                <td>|</td>
            	<td><a href="buscaFormCliConsultaNome.action">Consultar por Nome </a></td>
                <td>|</td>
                <td><a href="buscaFormCliConsultaCpf.action">Consultar por CPF </a></td>
                <td>|</td>
                <td><a href="listaTodosCli.action">Listar</a></td>
            </tr>
           </TABLE>
       </div>
       <br>
       <center>
        <s:form id="frmConsulta">
        <h1>Cliente</h1>
       <table align="center" class="borderTabelaconsulta">
		<tr class="nowrapConsulta">
		
			<td class="tdLabel"><s:text name="Nome" /></td>
			<td class="tdTextf"><s:textfield cssClass="nowrap" name="nome" size="40" maxlength="40"  />
			<s:submit action="ConsultaCliNome" key="Consultar"   />
			<s:submit key="Cancelar" />
			<input type="button" value=" Voltar " onclick="history.go(-1)"  /> 
		
			</td>
      	
       </tr>
       </table>
      
       </s:form>
    <table align=center class="borderAll">
	<tr>

		<th class="nowrapLateral"><s:text name="Cpf" /></th>
		<th class="nowrapLateral"><s:text name="Nome" /></th>
		<th class="nowrapLateral"><s:text name="Endereço" /></th>
		<th class="nowrapLateral"><s:text name="Telefone" /></th>
		<th class="nowrapLateral">&nbsp;</th>
		<th class="nowrapLateral">&nbsp;</th>

	
	</tr>
	<s:iterator value="listaCli" status="status">
		<tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">

			<td class="nowrap"><s:property value="cpf" /></td>
			<td class="nowrap"><s:property value="nome" /></td>
			<td class="nowrap"><s:property value="endereco" /></td>
			<td class="nowrap"><s:property value="telefone" /></td>
			<td class="nowrap" width="50" height="16"><s:url id="updateCliente"
				action="setUpCliInsertOrUpdate">
				<s:param name="cliente.id" value="id" />
			</s:url> <s:a href="%{updateCliente}"><img src="/DrogariaCruzeiro/imagens/Edit.gif"  border="0"></s:a>
			 </td>
			 <td class="nowrap" width="50" height="16">
			 <s:url
				id="deletarCliente" action="deleteCli">
				<s:param name="cliente.id" value="id" />
			</s:url> <s:a href="%{deletarCliente}" onclick="return confirm('Deseja Realmente Excluir este Cliente?')"><img src="/DrogariaCruzeiro/imagens/Excl.gif" border="0"></s:a></td>

		</tr>
	</s:iterator>
	    <tr class="nowrapLateralLater">

			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>

		</tr>
</table>
 <s:form id="frmConsulta">
 <br> <s:fielderror /> <s:actionerror /> <s:actionmessage />
 <table align="center" class="borderTabelaconsulta">

		<tr class="nowrapConsulta">
			<td class="tdLabel">&nbsp;&nbsp;&nbsp;</td>
			<td class="tdTextf">&nbsp;&nbsp;&nbsp;
			</td>
    
       </tr>
       </table> 
     </s:form>
      </center>    
       <br><br>
     </div>
 </body>
</html>
 
